package com.iteye.trafficRecorder;

import org.apache.http.HttpResponse;

/**
 * 异步HTTP请求回调(在UI线程中)
 * @author chen_weihua
 *
 */
public interface ResponseListener {
	
	/**
	 * HTTP请求成功
	 * @param response
	 * @param result
	 */
	public void onResponseSuccess(HttpResponse response, Object result, Object tagObj);
	
	/**
	 * HTTP请求失败
	 * @param response
	 * @param error
	 */
	public void onResponseFailed(HttpResponse response, Throwable error, Object tagObj);

}
